#ifndef _PRIMITIVECYLINDERX_
#define _PRIMITIVECYLINDERX_

#include "PrimitiveCylinder.h"
#include "GeomCylinder.h"

class PrimitiveCylinderX: public PrimitiveCylinder{
protected:
public:
	PrimitiveCylinderX( double Mass ): PrimitiveCylinder( Mass ){
		mGeomPtr->setRotation(Vec3d(0,-90,0));
		
	}
	PrimitiveCylinderX(Vec3d _offset, Vec3d _dim, double Mass) : PrimitiveCylinder(_offset, _dim, Mass){
		// set correct rotation
		mGeomPtr->setRotation(Vec3d(0,-90,0));
	}

	virtual inline void setDim(Vec3d _dim){
		mDim=Vec3d(_dim[1], _dim[0], _dim[2]);
		mGeom->setExtent(mDim);
	}
	//virtual inline void setOffset(Vec3d _offset){
	//	mOffset=vl_0;//_offset/2;
	//	mGeom->translate(mOffset);
	//}
};

#endif
